* Makefile.in (ALL_CFLAGS): Include -I${srcdir}.
authorJim Blandy <jimb@redhat.com>
Thu, 27 May 1993 02:54:03 +0000 (02:54 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 27 May 1993 02:54:03 +0000 (02:54 +0000)
(getopt.o, getopt1.c): Use ${srcdir} as appropriate.

lib-src/Makefile.in

index a1a79c255cd7efb5f8837e2a92de5160d5bd7ec6..eae3e5537dc7350db7783d46c33f99b1a982af2b 100644 (file)
@@ -103,7 +103,7 @@ SOURCES = COPYING ChangeLog Makefile.in README aixcc.lex emacs.csh \
 ### Some other files - those shared with other GNU utilities - need
 ### HAVE_CONFIG_H #defined before they know they can take advantage of
 ### the information in ../src/config.h.
-ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H -I${srcdir}/../src ${CFLAGS}
+ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H -I${srcdir} -I${srcdir}/../src ${CFLAGS}
 .c.o:
        ${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} $<
 
@@ -187,8 +187,8 @@ test-distrib: ${srcdir}/test-distrib.c
 
 GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
-getopt.o: getopt.c getopt.h
-getopt1.o: getopt1.c getopt.h
+getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
+getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
 
 etags: ${srcdir}/etags.c $(GETOPTDEPS)
        $(CC) ${ALL_CFLAGS} -DETAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o etags